package com.gxa.service.points;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.gxa.dto.pointsdto.ExchangeRecordDto;
import com.gxa.entity.points.ExchangeRecord;
import com.gxa.vo.ExchangeVo;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 礼品兑换记录表 服务类
 * </p>
 *
 * @author yjl
 * @since 2022-10-17 10:36:06
 */
public interface ExchangeRecordService extends IService<ExchangeRecord> {

    PageInfo<ExchangeRecordDto> queryAll(Integer pageNum,Integer count);
    ExchangeRecordDto queryById(Integer id);
    void delete(Integer id,String userNumber,Integer score);
    boolean add(ExchangeRecordDto exchangeRecordDto);
    void updateByUserName(String userName, Date date);
    PageInfo<ExchangeRecordDto> queryByVo(ExchangeVo exchangeVo);
    void updateById(Integer id,Date date);

}
